package com.dhsc.controller.wskh.ewmgl;

import com.dhsc.domain.ywzx.wskh.ewmgl.YjqzglVo;
import com.dhsc.domain.yypt.LayuiTableVo;
import com.dhsc.domain.yypt.ResponseObject;
import com.dhsc.service.wskh.ewmgl.IYjqzglService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName YjqzglController
 * @description: 佣金群组管理
 * @author: gx
 * @create: 2024-10-14 17:16:18
 **/
@Controller
@RequestMapping("/wskh/ewmgl")
public class YjqzglController {

    @Autowired
    private IYjqzglService yjqzglService;

    /**
    * @Description: 查询佣金群组管理
    * @MessageName: queryYjqzgl
    * @param: yjqzglVo
    * @return: LayuiTableVo
    * @Author: gx
    * @Date: 2024/10/14 17:19
    */
    @RequestMapping("/queryYjqzgl")
    @ResponseBody
    public LayuiTableVo queryYjqzgl(YjqzglVo yjqzglVo) {
        return yjqzglService.queryYjqzgl(yjqzglVo);
    }

    /**
    * @Description: 删除佣金群组管理
    * @MessageName: deleteYjqzgl
    * @param: yjqzglVo
    * @return: ResponseObject
    * @Author: gx
    * @Date: 2024/10/14 17:19
    */
    @RequestMapping("/deleteYjqzgl")
    @ResponseBody
    public ResponseObject deleteYjqzgl(YjqzglVo yjqzglVo) {
        return yjqzglService.deleteYjqzgl(yjqzglVo);
    }

    /**
    * @Description: 查询客户群组
    * @MessageName: queryTkhqz
    * @return: LayuiTableVo
    * @Author: gx
    * @Date: 2024/10/15 10:43
    */
    @RequestMapping("/queryTkhqz")
    @ResponseBody
    public LayuiTableVo queryTkhqz(YjqzglVo yjqzglVo) {
        return yjqzglService.queryTkhqz(yjqzglVo);
    }

    /**
    * @Description: 保存佣金群组管理
    * @MessageName: saveYjqzgl
    * @param: yjqzglVo
    * @return: ResponseObject
    * @Author: gx
    * @Date: 2024/10/15 15:59
    */
    @RequestMapping("/saveYjqzgl")
    @ResponseBody
    public ResponseObject saveYjqzgl(YjqzglVo yjqzglVo) {
        return yjqzglService.saveYjqzgl(yjqzglVo);
    }
}
